//
//  ZZAudioManager.h
//  RecorderTest
//
//  Created by 张彦东 on 2017/5/18.
//  Copyright © 2017年 Z. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZZAudioManager : NSObject

@property (nonatomic, assign) NSInteger channelsIndex;
@property (nonatomic, assign) NSInteger sampleRateIndex;
@property (nonatomic, assign) NSInteger linearPCMBitDepthIndex;
@property (nonatomic, assign) NSInteger audioQualityIndex;
@property (nonatomic, assign) NSInteger encoderBitRateIndex;

@property (nonatomic, strong, readonly) NSArray *audioArray;

+ (instancetype)manager;

// 首次进入时候预备
- (void)prepareAudio;

// audio recorder
- (void)recordPause;
- (void)recordResum;
- (void)recordStop;

// audio play
- (void)audioPlayWithAudioId:(NSNumber *)audioId;
- (void)audioStopWithAudioId:(NSNumber *)audioId;

@end

extern NSNotificationName const ZZRecordStopNotification;
extern NSNotificationName const ZZRecordMetersChangeNotification;

extern NSNotificationName const ZZAudioPlayNotification;
extern NSNotificationName const ZZAudioStopNotification;
